<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>生产排期</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/comm.css" type="text/css" rel="stylesheet">
	<style type="text/css">
		<!--
		-->
	</style>
  </head>
  
  <body>
  	<h1 align='center'>&nbsp; 生产排期</h1>
  	<a href='index.jsp'>返回主页</a>
  	
  	<c:set var="i" value="0" />
  	<c:set var="sum" value="0" />
  	<table class='tradeTable' align='center'>
  		<tr>
  			<td>ID</td>
  			<td>图片</td>
  			<td>商品名称</td>
  			<td>商品分类名称</td>
  			<td>数量</td>
  			<td>下单付款时间</td>
  		</tr>
  		<c:forEach var="str" items="${orderList}">
  		<tr>
  			<c:set var="i">
  				${i + 1}
  			</c:set>
  			<td>${i}</td>
  			<td><a href='${str[0]}'><img src='${str[0]}' width='64' height='64' /></a></td>
  			<td>${str[1]}</td>
  			<td>${str[2]}</td>
  			<td>${str[3]}</td>
  			<td>${str[4]}</td>
  		</tr>
  		<c:set var="sum">
  			${sum + str[3]} 
  		</c:set>
  		</c:forEach>
  		<tr>
  			<td colspan='6'>
  				<b><font size='14'>蝴蝶结总数: ${sum} </font></b>
  			</td>
  		</tr>
  	</table>
  </body>
</html>
